<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>search page</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />

    <script src="static/sool/js/global.js"></script>
    <script>
        JsAndCssUtil.importCss("/static/css/amazeui.min");
        JsAndCssUtil.importCss("/static/css/app");
        JsAndCssUtil.importCss("/static/css/font-awesome.min");
        JsAndCssUtil.importCss("/static/css/font-awesome");
        JsAndCssUtil.importCss("/static/css/font-glyphicons");
        JsAndCssUtil.importCss("/static/sool/style/basic");
        JsAndCssUtil.importCss("/static/sool/style/search");
    </script>


</head>
<body>

<!--头部logo与我要提问的显示-->
<div id="ContainerId">
    <script type="text/javascript">
        renderNavBar();
    </script>
</div>

<!--分类模块和版本模块的展现-->
<div class="am-context" style="width: 1000px; margin-left: 160px;">
    <div class="am-sort">
        <div style="display: none" id="model"></div>
        <div style="..." id="type"></div>
        <div style="display: none" id="vision"></div>
        <div class="pt18h brl lh19h pb5h">
            <p class="pb11h" id="questiontemplate">


            </p>
            <p class="pb11h" id="typetemplate">

            </p>
            <p class="pb11h" id="versiontemplate">

            </p>
        </div>
    </div>
</div>

<hr class="am-divider blog-hr am-hrjanju">

<!--主体内容的展现-->
<div class="contain-all">
    <div class="contain-all-left-all">
        <div id="contain-all-left">


        </div>
        <div class="contain-all-left-page">
            <ul class="am-pagination am-pagination-centered pagemes" id="pagemes">

            </ul>
        </div>
    </div>



    <div class="contain-all-right">
        <div class="contain-all-right-text">
            <div class="contain-all-right-text-top">
                <h3>精华问题</h3>
            </div>
            <div class="contain-all-right-text-bottom" id="xsQuestionList">


            </div>
        </div>
    </div>


</div>
</div>
<div class="clear"></div>
<!--底部版权模块-->
<footer class="am-margin-top doc-footer-color">
    <hr/>
    <p class="am-text-center">
        <small>
            @copy;2015用友能源科技有限公司版权所有 京ICP备15038140号-1   官方微博   用户协议
        </small>
    </p>
</footer>


<!--引入外部的JS文件-->
<script type="text/javascript">
    JsAndCssUtil.importJs("/static/sool/js/jquery");
    JsAndCssUtil.importJs("/static/js/amazeui.min");
    JsAndCssUtil.importJs("/static/js/handlebars.min");
    /*加载logo和NAV和search*/

    JsAndCssUtil.importJs("/static/sool/js/nav");

    /*加载引入公共的useID的文件*/
    JsAndCssUtil.importJs("/static/sool/data/bindingData");
    JsAndCssUtil.importJs("/static/sool/data/search");
    JsAndCssUtil.importJs("/static/sool/data/module");
    JsAndCssUtil.importJs("/static/sool/js/global");
</script>

<!--加载显示搜索结果-->
<script id="template" type="text/x-handlebars-template">
    {{#each this}}
    {{#compare status}}
    <div class="contain-all-left-middle-top">
        <div class="contain-all-left-middle-top-img">
            <img src="{{imgUrl pk_sool_user}}" width="40px" height="40px" class="am-round">
        </div>
        <div class="contain-all-left-middle-top-text">
            <h4><a href="{{sd_link}}" ismyselft="{{ismyselft}}" status="{{status}}" pk_sool_question="{{pk_sool_question}}">
                {{question_title}}</a>
                <span>已解决</span>
            </h4>
            <p>
                <span class="text-color-999">发布时间:{{submissiontime}}• {{answercount}} 个回复</span>
                <span class="text-color-999 related-topic collapse"> • 来自搜索</span>
            </p>
        </div>
    </div>
    {{else}}
    <div class="contain-all-left-middle-top">
        <div class="contain-all-left-middle-top-img">
            <img src="{{imgUrl pk_sool_user}}" width="40px" height="40px" class="am-circle">
        </div>
        <div class="contain-all-left-middle-top-text">
            <h4><a href="{{sd_link}}" ismyselft="{{ismyselft}}" status="{{status}}" pk_sool_question="{{pk_sool_question}}">
                {{question_title}}</a>
                <!--<span> 已解决</span>-->
            </h4>
            <p>
                <span class="text-color-999">发布时间:{{submissiontime}}• {{answercount}} 个回复</span>
                <span class="text-color-999 related-topic collapse"> • 来自搜索</span>
            </p>
        </div>
    </div>
    {{/compare}}
    {{/each}}

</script>

<!--精华问题-->
<script type="text/x-handlebars-template" id="li_template">
    <ul class="short-list">
        {{#each this}}
        <div class="contain-all-right-ess">
            <div class="contain-all-right-ess-img">
                <img src="{{imgUrl pk_sool_user}}" width="35px"; height="35px"; class="am-circle">
            </div>
            <div class="contain-all-right-ess-text">
                <a href="{{qa_link}}" status="{{status}}" pk_sool_question="{{pk_sool_question}}">{{similaryQuestion_length question_title}}</a>
                <p class="am-text-truncate">{{short_description}}</p>
            </div>
        </div>
        {{/each}}
    </ul>

</script>


<!--<div class="search-right-nav-context"><i class="fa fa-diamond search-diamond-color"></i>&nbsp;<a href="{{es_link}}" class="am-text-truncate">{{question_title}}</a></div>-->
<!--handlerbars.js分类模块模板-->
<script id="allQuestion_questiontemplate" type="text/x-handlebars-template">
    <span class="hover-span-bg">分类模块:&nbsp</span>
    <a class="hover-blue-bg tag-module tag-module-all" >全部</a>
    {{#each this}}
    <a class="hover-blue-bg tag-module" data-module="{{pk_sool_questionmodel}}">{{questionmodel_name}}</a>
    {{/each}}
</script>

<!--handlerbarsl.js问题类型模板-->
<script id="allQuestion_typetemplate" type="text/x-handlebars-template">
    <span class="hover-span-bg">问题类型:&nbsp</span>
    <a class="hover-blue-bg tag-type tag-type-all">全部</a>
    {{#each this}}
    <a class="hover-blue-bg tag-type" data-type="{{pk_sool_questiontype}}">{{questiontype_name}}</a>
    {{/each}}
</script>

<!--handlerbars.js版本信息模板-->
<script id="allQuestion_versiontemplate" type="text/x-handlebars-template">
    <span class="hover-span-bg">版本信息:&nbsp</span>
    <a class="hover-blue-bg tag-version tag-version-all">全部</a>
    {{#each this}}
    <a class="hover-blue-bg tag-version" data-version="{{system_vision}}">{{system_vision}}</a>
    {{/each}}
</script>
<script type="text/javascript">
    $(document).ready(function(){
        getSearchContext();
        get_question_module();
        get_version_module();
        registerHelper_status();
        searchClick();
        get_type_module();
        similarQuestion();


    });
</script>

<script>
    /*var aa = function(){
        $("#searchButton").click(function(){
            alert("点击按钮了");
            $.ajax({
                url: WebSite.SearchResultPage.searchResult_list,
                type: "post",
                data: {
                    "keyword": $("#kw").val(),
                    "methodname":"aa",
                },
                dataType: "json",
                success: function (result) {
                    if (result.success) {
                        var search_data = searchData.resultData;
                        for (var i = 0, len = search_data.length; i < len; i++) {
                            var record = search_data[i];
                            record.sd_link = searchDetailPath(record);
                        }
                        var pagemess=searchData.pagemess;
                        $('#pagemes').html(pagemess);
                        var myTemplate = Handlebars.compile($("#template").html());
                        $("#contain-all-left").html(myTemplate(search_data));
                    }
                },
                error: function () {
                    alert("没有获得222222222222222222222222222222222数据");
                }
            });

        });
    };*/

</script>
</body>
</html>